package com.iss.supermarket.util.repository;

import com.iss.supermarket.util.entity.Goods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("GoodsDao")
public interface GoodsDao {
    Goods queryGoodsByBarCode(@Param("BarCode")String BarCode);
    List<String> queryAllGoodsBarCode();
    void OutFlow(@Param("uuid")String uuid,
                 @Param("barcode")String barcode,
                 @Param("num")int num,
                 @Param("modtime")String modtime);
    void Entry(@Param("uuid")String uuid,
               @Param("barcode")String barcode,
               @Param("num")int num,
               @Param("modtime")String modtime);
    void updateGoodsInfo(@Param("barcode")String barcode,
                         @Param("name")String name,
                         @Param("price")String price,
                         @Param("unit")String unit,
                         @Param("place")String place,
                         @Param("specs")String specs,
                         @Param("level")String level,
                         @Param("num")String num);
    void SoftDelete(@Param("barcode")String barcode,
                    @Param("delflag")int delflag);
}
